Esempio n. 1
0
        public string CreateSamplePointArea([Bind(Exclude = "SamplePointAreaID")] SamplePointArea item)
        {
            string msg = string.Empty;

            try
            {
                if (ModelState.IsValid)
                {
                    _genSvc.CreateSamplePointArea(item);
                    msg = "Sample Point Area created succesfully";
                }
                else
                {
                    msg = "Data validation not successfull";
                }
            }
            catch (Exception e)
            {
                msg = "Create Sample Point Area. An error has ocurred";
            }

            return(msg);
        }