I use this method to get file extension,
public string ReturnExtension(string fileExtension)
{
switch (fileExtension)
{
case ".doc":
case ".docx":
return "application/ms-word";
}
}
When i compile it i got the error BaseClass.ReturnExtension(string)': not all code paths return a value
.. Any suggestion...